<!DOCTYPE html>
<html lang="en">
<head>
    {% block head %}
        <meta charset="UTF-8">
        <meta http-equiv="cache-control" content="no-cache,no-store, must-revalidate"/>
        <meta http-equiv="pragma" content="no-cache"/>
        <meta http-equiv="Expires" content="0"/>
        <meta name="viewport"
              content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="ie=edge">
        <title>{% block title %}运维日报 {{ current_user.alias|default("",true) }}{% endblock title %}</title>
        <link rel="shortcut icon" type="image/x-icon" href="{{ url_for("static", filename="favicon.ico") }}">
        <link rel="icon" type="image/x-icon" href="{{ url_for("static", filename="favicon.ico") }}">
        <link rel="stylesheet" type="text/css" href={{ url_for("static",filename="css/bootstrap.css",_external=True) }}>
        <link rel="stylesheet" type="text/css"
              href="{{ url_for("static",filename="fonts/font-awesome-4.7.0/css/font-awesome.css",_external=True) }}"/>
        <link rel="stylesheet" type="text/css" href="{{ url_for("static",filename="css/style.css") }}"/>
        <link rel="stylesheet" type="text/css" href="{{ url_for("static",filename="extra/myAlert/myAlert.min.css") }}"/>
        {% block styles %}{% endblock %}
        <script type="text/javascript" src={{ url_for("static",filename="js/jquery.min.js",_external=True) }}></script>
        <script type="text/javascript" src={{ url_for("static",filename="js/bootstrap.js",_external=True) }}></script>
        {% block scripts %}
            <script type="text/javascript" charset="utf-8"
                    src="{{ url_for('static', filename='ueditor/ueditor.config.js') }}"></script>
            <script type="text/javascript" charset="utf-8"
                    src="{{ url_for('static', filename='ueditor/ueditor.all.min.js') }}"></script>
            <script type="text/javascript"
                    src="{{ url_for("static",filename="extra/My97DatePicker/WdatePicker.js") }}"></script>
            <!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
            <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
            <script type="text/javascript" charset="utf-8"
                    src="{{ url_for('static', filename='ueditor/lang/zh-cn/zh-cn.js') }}"></script>
            <script src="{{ url_for('static',filename='ueditor/ueditor.parse.js') }}"></script>
            <script>
                setTimeout(function () {
                    uParse('div',
                        {
                            'highlightJsUrl': '{{ url_for("static",filename="ueditor/third-party/SyntaxHighlighter/shCore.js") }}',
                            'highlightCssUrl': '{{ url_for("static",filename="ueditor/third-party/SyntaxHighlighter/shCoreDefault.css") }}'

                        })
                }, 300);
            </script>
        {% endblock %}
        <script type="text/javascript"
                src="{{ url_for("static",filename="extra/myAlert/myAlert.min.js") }}"></script>
        <script type="text/javascript" src="{{ url_for("static",filename="js/header.js") }}"></script>
        <script type="text/javascript" src="{{ url_for("static",filename="js/common.js") }}"></script>
    {% endblock %}


</head>
<body>
{% include 'subpage/navbar.html' %}
{% block content %}
    <div class="outer-box">
        {% block backend_manage %}
            {% block daily_report %}
                <div class="container">
                    <div class="main-box">
                        {% for level, mes in get_flashed_messages(with_categories=true) %}
                            <div class="alert alert-{{ level }} alert-dismissible" role="alert">
                                <button type="button" class="close" data-dismiss="alert" aria-hidden="true"
                                        arial-label="Close">&times;
                                </button>
                                <p class="text-center">{{ mes }}</p>
                            </div>
                        {% endfor %}
                        <div class="title-box clearfix">
                            <h3 class="title-text pull-left margin-none padding-none">
                                {% block title_text %}

                                {% endblock %}

                            </h3>
                            <div class="pull-left margin-none padding-none">
                                {% block return_block %}

                                {% endblock %}
                            </div>
                            <div class="pull-right clearfix">
                                {% block time_field %}

                                {% endblock %}
                            </div>
                        </div>
                        <div class="top-box clearfix margin-none padding-none">
                            {% block table %}{% endblock %}
                        </div>
                        <div class="bot-box clearfix margin-none padding-none">
                            {% block ueditorbox %}{% endblock %}
                        </div>
                    </div>
                </div>
            {% endblock %}
        {% endblock %}

    </div>
{% endblock %}
</body>
</html>